
class AutoTest{
  AutoTest(
      this.testID,
      this.testName,
      this.testEnv,
      this.testThread,
      this.testInterval,
      this.testCycles,
      this.testSuccess,
      this.testError,
      this.requestTime,
      this.averageTime,
      this.testDate
      );

  int? testID;
  String testName;
  String testEnv;
  int testThread;
  int testInterval;
  int testCycles;
  int testSuccess;
  int testError;
  int requestTime;
  double averageTime;
  String testDate;

  AutoTest.fromJson(Map<String, dynamic> json)
      : testID=json['test_id'],
        testName=json['testName'],
        testEnv= json['test_env'],
        testThread = json['test_thread'],
        testInterval = json['test_interval'],
        testCycles = json['test_cycles'],
        testSuccess=json['test_success'],
        testError=json['test_error'],
        requestTime=json['request_time'],
        averageTime=json['average_time'],
        testDate=json['test_date'];


  Map<String, Object?> toMap()=> {
    'test_id':testID,
    'test_name':testName,
    'test_env':testEnv,
    'test_thread':testThread,
    'test_interval':testInterval,
    'test_cycles':testCycles,
    'test_success':testSuccess,
    'test_error':testError,
    'request_time':requestTime,
    'average_time':averageTime,
    'test_date':testDate

  };


}